package com.fzl.spring_chatroom.model.mapper;

import com.fzl.spring_chatroom.model.dao.Friend;
import com.fzl.spring_chatroom.model.dao.MessageSession;
import com.fzl.spring_chatroom.model.dao.MessageSessionUserItem;
import com.fzl.spring_chatroom.model.dao.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageSessionMapper {
    List<Integer> getSessionIdBySessionId(Integer userId);

    List<Friend> getFriendsBySessionId(Integer sessionId, Integer selfUserId);

    Integer addMessageSession(MessageSession messageSession);

    void addMessageSessionUser(MessageSessionUserItem messageSessionUserItem);

    User getUserById(Integer userId);
}
